package cn.edu.cxcyzx.entity;

import java.io.Serializable;
import java.sql.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;

public class Task implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7107273643126771800L;
	private int id;
	private int projectId;
	private String groupId;
	private String taskId;
	private String stuId;
	private String stuName;
	private String taskName;
	private String task_introduction;
	private int taskStatus;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date finishTime;
	private String taskFile;
	private int process;//任务进度1-10
	private String branch;
	public Task(){}
	public Task(int projectId,String branch,String taskId,String taskName,String task_introduction,String taskFile){
		this.projectId=projectId;
		this.taskId=taskId;
		this.taskName=taskName;
		this.task_introduction=task_introduction;
		this.taskFile=taskFile;
		this.branch=branch;
	}
	
	public String getBranch() {
		return branch;
	}
	public void setBranch(String branch) {
		this.branch = branch;
	}
	public String getGroupId() {
		return groupId;
	}
	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}
	public int getProcess() {
		return process;
	}
	public void setProcess(int process) {
		this.process = process;
	}
	public String getStuName() {
		return stuName;
	}
	public void setStuName(String stuName) {
		this.stuName = stuName;
	}
	public String getStuId() {
		return stuId;
	}
	public void setStuId(String stuId) {
		this.stuId = stuId;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getProjectId() {
		return projectId;
	}
	public void setProjectId(int projectId) {
		this.projectId = projectId;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public String getTask_introduction() {
		return task_introduction;
	}
	public void setTask_introduction(String task_introduction) {
		this.task_introduction = task_introduction;
	}
	public int getTaskStatus() {
		return taskStatus;
	}
	public void setTaskStatus(int taskStatus) {
		this.taskStatus = taskStatus;
	}
	public Date getFinishTime() {
		return finishTime;
	}
	public void setFinishTime(Date finishTime) {
		this.finishTime = finishTime;
	}
	public String getTaskFile() {
		return taskFile;
	}
	public void setTaskFile(String taskFile) {
		this.taskFile = taskFile;
	}
	@Override
	public String toString() {
		return "Task [id=" + id + ", projectId=" + projectId + ", groupId="
				+ groupId + ", taskId=" + taskId + ", stuId=" + stuId
				+ ", stuName=" + stuName + ", taskName=" + taskName
				+ ", task_introduction=" + task_introduction + ", taskStatus="
				+ taskStatus + ", finishTime=" + finishTime + ", taskFile="
				+ taskFile + ", process=" + process + ", branch=" + branch
				+ "]";
	}
	
	
	
}
